function move(e)
{
	setTimeout(function  () {doMove(e)},2000); // calls doMove() 2000 miliseconds from now
//	delay(500); // pause execution for 500 msec
}

//	var play = setTimeout(function  () {doMove(e)},2000); // calls doMove() 2000 miliseconds from now
//	clearTimeout(play);

//	var refreshIntervalId = setInterval(function () {alert("Hello")}, 500); // calls alert() every 500 miliseconds until stopped
//	clearInterval(refreshIntervalId);	

var myVar
function doMove(e) 
{
	e.style.width = parseInt(e.clientWidth) + 200 + 'px';
	clearTimeout(myVar);
	myVar = setTimeout(function(){
							document.getElementById('divOne').style.width = 100 + 'px';
							document.getElementById('divOne').innerHTML = "Test1";
							document.getElementById('divOne').style.backgroundColor="red";
							document.getElementById('divTwo').style.width = 100 + 'px';
							document.getElementById('divTwo').innerHTML = "Test2";
							document.getElementById('divTwo').style.backgroundColor="red";
							
						},3000)
}


function changeImage()
{
	document.getElementById("brain").style.width = "5%";
}

function alertme(e)
{
	alertmsg = e.src + "\nHeight: " + e.height + "\nWidth: " + e.width;
	alert(alertmsg);
}
function changeColor(e)
{
	document.getElementById('divOne').style.backgroundColor="blue";
	document.getElementById('divOne').firstChild.nodeValue = "Blue!";
}
function changeAgain()
{
	document.getElementById('divOne').style.backgroundColor="green";
	document.getElementById('divOne').firstChild.nodeValue = "Green!";
}

//	        OnAbort - Called when a page load is interrupted
//	        OnError - Called when an error occurs during page load
//	        OnKeyDown - When key is pressed but not released
//	        OnKeyUp - When key is released
//        	OnMouseUp - When mouse button is released
//	        OnReset - When reset button is clicked
//	        OnSelect - When text is selected
//	        OnSubmit - When submit button is clicked
//	        OnUnload - When user leaves a page

//			LOOK AT E:\Eclipse\HTML\All\DB\javaScript.php 		!!!
